package com.TropicalFlavor.controller;

import com.TropicalFlavor.po.MarketGoods;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.servlet.http.HttpServletRequest;

@Controller
public class GoodsController
{
    //进入上传商品页面
    @RequestMapping(value = "/publish_product.do", method = RequestMethod.GET)
    public String publish(HttpServletRequest request, Model model)
    {
        model.addAttribute("marketGoods", new MarketGoods());
        model.addAttribute("action", 1);
        return "page/publish_product";
    }
}
